import config from '@/config'
import { httpDel, httpGet, httpPost, httpPut } from '@/appBase/request.js';
import { desDecrypt, desEncrypt, getAxiosInstance, getHttpHeaders as getHttpHeaders1 } from '@/appBase/axiosReq.js';
/** 兼容老的网络请求,本文件代码请务必不再使用 */
/**
 * @deprecated
 */
export const des_encrypts = desEncrypt;
//解密
/**
 * @deprecated
 */
export const des_decrypts = desDecrypt;

/**
 * @deprecated
 */
export const instance = getAxiosInstance();
/**
 * @deprecated
 */
export const upUrl = config.upUrl;
/**
 * @deprecated
 */
export const getFun = params => httpGet(params.urls,params);
/**
 * @deprecated
 */
export const deleteFun = params => httpDel(params.urls,params);
/**
 * @deprecated
 */
export const postFun = params => httpPost(params.urls,params);
/**
 * @deprecated
 */
export const putFun = params => httpPut(params.urls,params);
/**
 * @deprecated
 */
export const getHttpHeaders = () => {
	return getHttpHeaders1();
}